import fetch from 'common/src/utils/fetch';
/**
 *
 * 查询研究生课程
 */
export function findMasterCourse(data) {
    return fetch({
        url: '/api/arrangementservice/masterCourseManage/findMasterCourse2', // TODO page2
        method: 'post',
        data
    });
}

export function initPage(data) {
    return fetch({
        url: '/api/arrangementservice/masterCourseManage/initPage', // 导入数据
        method: 'post',
        data
    });
}

/**
 *
 * 更改开课状态
 */
export function updateMasterCourse(data) {
    return fetch({
        url: '/api/arrangementservice/masterCourseManage/updateCourseStatus',
        method: 'post',
        data
    });
}

/**
 *
 * 同步研究生课程
 */
export function synchronMasterCourse(data) {
    return fetch({
        url: '/api/arrangementservice/masterCourseManage/synchronMasterCourse',
        method: 'post',
        data
    });
}

export function exportMasterCourseList(data) {
    return fetch({
        url: '/api/arrangementservice/masterCourseManage/export',
        method: 'post',
        data: data
    });
}

export function getReportStatus(key) {
    return fetch({
        url: '/api/arrangementservice/masterCourseManage/result/' + key,
        method: 'get'
    });
}
